<?php

class PhpFox_Mod_Account_ComponentInvitePending extends BaseComponent
{
    /** Processing method
     */
	function process()
	{
		$oReq = &App::getRequest();
		$oSrvInvite = &$this->_oModule->getService('Invite');

		if ( $iDeleteId = $oReq->get('delete') )
		{
			$bIsDeleted = $oSrvInvite->deleteInvite($iDeleteId);
		}

		$this->oTpl->assign(array
		(
			'aList' => $oSrvInvite->getInvites(App::getUser('user')),
			'bIsDeleted' => (isset($bIsDeleted) ? $bIsDeleted : ''),
		));

		$sHtml = $this->oTpl->fetch('InvitePending.html');
		return $sHtml;
	}

}

?>